package com.sixth.controller;

import com.sixth.core.entity.User;
import com.sixth.core.vo.R;
import com.sixth.service.UserService;
import com.sixth.vo.CommentParamVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: sixth-hospital-parent
 * @description:
 * @author: 李劲锋
 * @create: 2024-09-05 09:22
 **/
@RestController
@RequestMapping("/charge/commentAll")
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("/getUserByChId/{chId}")
    public R getUserByChId(@PathVariable String chId){
        return userService.getUserByChId(chId);
    }
    @PostMapping("/comment/insertComment")
    public R insertComment(@RequestBody CommentParamVo commentParamVo){
        return userService.insertComment(commentParamVo);
    }
}
